home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earcd / utils / showamiga96 / installshowamiga96 < prev    next >
Text File  |  1998-01-17  |  16KB  |  577 lines

  1.  
  2. (set #nohelp "Keine Hilfe verfügbar")
  3. (set #mainpath "C:")
  4. (set #closepath "Sys:WBstartup/")
  5. (set #prefspath "Sys:Prefs/")
  6. (set #dokupath "HELP:")
  7. (set #driverpath "DEVS:Monitors/")
  8. (set #editsseq "c/editsseq ")
  9.  
  10.  
  11.  
  12. ;=============================================================================
  13. ; English strings
  14. ;=============================================================================
  15.  
  16. (if
  17.     (= @language "english")
  18.     (
  19.         (set #startupmsg1
  20.             (cat
  21.                 "\n\n\nWelcome to ShowAmiga96 V1.2, the somewhat other bootpic-viewer."
  22.                 "\n\n\n\n\nThis software is subject to the \"Standard Amiga FD-Software Copyright Note\"."
  23.                 "\nIt is MAILWARE as defined in paragraph 4b."
  24.                 "\nFor more information please read "AFD-COPYRIGHT" (Version 1 or higher)."
  25.             )
  26.         )
  27.         (set #getpath1    "Please choose directory for the mainprogram (ShowAmiga96)."
  28.         )
  29.         (set #getpath2    "Please choose directory for the closer (ShowAmiga96_Close)."
  30.         )
  31.         (set #getpath3    "Please choose directory for the preferences-program (ShowAmiga96_Prefs)."
  32.         )
  33.         (set #getpath4    "Please choose directory for the documentation."
  34.         )
  35.         (set #getdoku1    "Which documentations should be copied?"
  36.         )
  37.         (set #getdoku2    "Textfile"
  38.         )
  39.         (set #getdoku22    "AmigaGuide"
  40.         )
  41.         (set #getdoku3    "HTML-directory"
  42.         )
  43.         (set #copy1    "Copying mainprogram..."
  44.         )
  45.         (set #copy2    "Copying closer..."
  46.         )
  47.         (set #copy3    "Copying preferences-program..."
  48.         )
  49.         (set #copy4    "Copying textfiles..."
  50.         )
  51.         (set #copy44    "Copying Guide..."
  52.         )
  53.         (set #copy5    "Copying HTML-directory..."
  54.         )
  55.         (set #afdfile    "Docs/AFD-COPYRIGHT"
  56.         )
  57.         (set #textfile    "Docs/ShowAmiga96_E.txt"
  58.         )
  59.         (set #guidefile    "Docs/ShowAmiga96_E.guide"
  60.         )
  61.         (set #htmlfile    "#?_E.htm#?"
  62.         )
  63.         (set #getdriver
  64.             (cat
  65.                 "To show the bootpic as early as possible, ShowAmiga96 has to start the "
  66.                 "Picasso96-monitordriver by itself.\nPlease select the Picasso96-monitordriver."
  67.             )
  68.         )
  69.         (set #startupmsg3    "\nAdjusting ShowAmiga96-basepreferences..."
  70.         )
  71.         (set #startupmsg4
  72.             (cat
  73.                 "\nThe installation has been completed.\n\nAfter a reset you can "
  74.                 "enjoy your new bootpic. If problems occur, dont´t hesitate to contact "
  75.                 "me :-)\n\n"
  76.                 "Heiko Müller\n"
  77.                 "Ernst-Reuter-Str. 8\n"
  78.                 "31275 Lehrte\n"
  79.                 "Germany\n\n"
  80.                 "hmueller@online.de"
  81.             )
  82.         )
  83.         (set #startupmsg5
  84.             (cat
  85.                 "\nDo you want to start the prefs-program now?\n\n"
  86.                 "(It´s recommended to check the installation.)"
  87.             )
  88.         )
  89.         (set #tooltype1    "\nAdjusting prefs-tooltypes..."
  90.         )
  91.         (set #nodriver1    "\nThe file \""
  92.         )
  93.         (set #nodriver2    "\" couldn´t be opened! Please select an existing one."
  94.         )
  95.         (set #workmsg1    "\nEditing startup-sequence..."
  96.         )
  97.         (set #startupmsg6
  98.             (cat
  99.                 "\nThe installer inserts the ShowAmiga96-call into the startup-sequence. "
  100.                 "A backup file called \"Startup-Sequence.SA96\" will be created in S:.\n\n"
  101.                 "If necessary, you can edit the startup-sequence yourself later, but "
  102.                 "please read the documentation!!!"
  103.             )
  104.         )
  105.         (set #help1
  106.             (cat
  107.                 "\nThe mainprograms part is showing the bootpic from the startup-sequence. "
  108.                 "Its place should be in c:."
  109.             )
  110.         )
  111.         (set #help2
  112.             (cat
  113.                 "\nThe closer fades out the bootpic and closes the Picasso96-screen. "
  114.                 "It should be called at the end of WBstartup."
  115.             )
  116.         )
  117.         (set #help3    "\nThe prefs-program should be placed in the Prefs-Drawer."
  118.         )
  119.         (set #help4
  120.             (cat
  121.                 "\nYou can select the type of documentation (textfile / AmigaGuide-file) which "
  122.                 "shound be copied. The destination directory will be chosen in the next step."
  123.             )
  124.         )
  125.         (set #help5
  126.             (cat
  127.                 "\nWhile ShowAmiga96 owns no own directory, the documentation-files have to be "
  128.                 "installed in the system-help-directory."
  129. ;                 If you select the HTML-docs a new "
  130. ;                "directory (ShowAmiga96) in be created."
  131.             )
  132.         )
  133.         (set #help6
  134.             (cat
  135.                 "\nShowAmiga96 opens its screen before the monitordrivers from DEVS:Monitors are loaded. "
  136.                 "That´s the reason why ShowAmiga96 has to start the Picasso96-driver itself, all other "
  137.                 "monitordrivers are loaded a bit later. To pick the correct P96-driver, the installer "
  138.                 "needs your help."
  139.             )
  140.         )
  141.         (set #help7
  142.             (cat
  143.                 "\nThe installer is able to modifiy the startup-sequence itself. If you have changed the file "
  144.                 "too much or if you want to start ShowAmiga96 sonetimes later, you can skip this part and enter "
  145.                 "the call by hand. (Please pay attention to the dokumentation)"
  146.             )
  147.         )
  148.         (set #help8
  149.             (cat
  150.                 "\nEven if you don´t want to change the configuration now, you should start the prefs-program anyway. "
  151.                 "Simply press the Test-Button and if you get an error-message consult the dokumentation."
  152.             )
  153.         )
  154.     )
  155. )
  156.  
  157. ;=============================================================================
  158. ; German strings
  159. ;=============================================================================
  160.  
  161. (if
  162.     (= @language "deutsch")
  163.     (
  164.         (set #startupmsg1
  165.             (cat
  166.                 "\n\n\nWillkommen zu ShowAmiga96 V1.2, dem etwas anderen Bootbild-Anzeiger."
  167.                 "\n\n\n\n\nDiese Software unterliegt der \"Standard Amiga FD-Software Copyright Note\"."
  168.                 "\nSie ist MAILWARE wie definiert in Absatz 4b."
  169.                 "\nFür mehr Informationen lies bitte "AFD-COPYRIGHT" (Version 1 oder höher)."
  170.             )
  171.         )
  172.         (set #getpath1    "Bitte wählen Sie das Verzeichnis für das Hauptprogramm (ShowAmiga96) aus."
  173.         )
  174.         (set #getpath2    "Bitte wählen Sie das Verzeichnis für das Schließprogramm (ShowAmiga96_Close) aus."
  175.         )
  176.         (set #getpath3    "Bitte wählen Sie das Verzeichnis für das Einstellungsprogramm (ShowAmiga96_Prefs) aus."
  177.         )
  178.         (set #getpath4    "Bitte wählen Sie das Verzeichnis für die Anleitung aus."
  179.         )
  180.         (set #getdoku1    "Welche Anleitungen sollen kopiert werden?"
  181.         )
  182.         (set #getdoku2    "Textdatei"
  183.         )
  184.         (set #getdoku22    "AmigaGuide"
  185.         )
  186.         (set #getdoku3    "HTML-Verzeichnis"
  187.         )
  188.         (set #copy1    "Kopiere Hauptprogramm..."
  189.         )
  190.         (set #copy2    "Kopiere Schließprogramm..."
  191.         )
  192.         (set #copy3    "Kopiere Einstellungsprogramm..."
  193.         )
  194.         (set #copy4    "Kopiere Textdateien..."
  195.         )
  196.         (set #copy44    "Kopiere Guide..."
  197.         )
  198.         (set #copy5    "Kopiere HTML-Verzeichnis..."
  199.         )
  200.         (set #afdfile    "Docs/AFD-COPYRIGHT.de"
  201.         )
  202.         (set #textfile    "Docs/ShowAmiga96_D.txt"
  203.         )
  204.         (set #guidefile    "Docs/ShowAmiga96_D.guide"
  205.         )
  206.         (set #htmlfile    "#?_D.htm#?"
  207.         )
  208.         (set #getdriver
  209.             (cat
  210.                 "Um möglichst frühzeitig das Bootbild "
  211.                 "anzeigen zu können, muß ShowAmiga96 das Starten des Picasso96-Monitortreibers selbst "
  212.                 "übernehmen.\nBitte wählen Sie jetzt den Picasso96-Monitortreiber aus:"
  213.             )
  214.         )
  215.         (set #startupmsg3    "\nPasse ShowAmiga96-Grundeinstellungen an..."
  216.         )
  217.         (set #startupmsg4
  218.             (cat
  219.                 "\nDie Installation ist jetzt abgeschlossen.\n\nNach einem Neustart können "
  220.                 "Sie sich an Ihrem neuen Bootbild erfreuen. Sollten Probleme auftreten, "
  221.                 "so ist sicherlich das entsprechende Kapitel in der Anleitung hilfreich. "
  222.                 "Ansonsten bin ich ja auch noch da ;-)\n\n"
  223.                 "Heiko Müller\n"
  224.                 "Ernst-Reuter-Str. 8\n"
  225.                 "31275 Lehrte\n\n"
  226.                 "hmueller@online.de"
  227.             )
  228.         )
  229.         (set #startupmsg5
  230.             (cat
  231.                 "\nMöchten Sie jetzt das Prefs-Programm starten?\n\n"
  232.                 "(Empfiehlt sich auch zum Testen der Installation.)"
  233.             )
  234.         )
  235.         (set #tooltype1    "\nÄndere Prefs-Tooltypes..."
  236.         )
  237.         (set #nodriver1    "\nDie angegebene Datei \""
  238.         )
  239.         (set #nodriver2    "\" existiert nicht! Wählen Sie bitte eine vorhandene Datei."
  240.         )
  241.         (set #workmsg1    "\nTrage ShowAmiga96-Aufruf in Startup-Sequence ein..."
  242.         )
  243.         (set #startupmsg6
  244.             (cat
  245.                 "\nDas Installationsprogramm fügt jetzt den ShowAmiga96-Aufruf in die "
  246.                 "Startup-Sequence ein. Eine Sicherungskopie wird unter dem Namen "
  247.                 "\"Startup-Sequence.SA96\" in S: angelegt.\n\n"
  248.                 "Wenn Sie wollen, können Sie die Änderung später auch von Hand vornehmen, "
  249.                 "aber dabei unbedingt die Anleitung beachten!!!"
  250.             )
  251.         )
  252.         (set #ask
  253.             (cat
  254.                 "\nMöchten Sie jetzt das Prefs-Programm starten?\n\n"
  255.                 "(Empfiehlt sich auch zum Testen der Installation.)"
  256.             )
  257.         )
  258.         (set #help1
  259.             (cat
  260.                 "\nDas Hauptprogramm wird vorzugsweise in der Startup-Sequence aufgerufen und "
  261.                 "übernimmt das Anzeigen des Bildes. Normalerweise wird es in C: kopiert."
  262.             )
  263.         )
  264.         (set #help2
  265.             (cat
  266.                 "\nDas Schließprogramm blendet das Bootbild aus und schließt den Picasso96-Bildschirm. "
  267.                 "Es wird normalerweise am Ende des Bootvorgangs aus der WBstartup-Schublade gestartet."
  268.             )
  269.         )
  270.         (set #help3
  271.             (cat
  272.                 "\nMit dem Prefs-Programm können verschiedene Einstellungen am Hauptprogramm vorgenommen "
  273.                 "werden. Die Prefs-Schublade der Workbench ist der geeignete Platz."
  274.             )
  275.         )
  276.         (set #help4
  277.             (cat
  278. ;                "\nSie können wählen, ob Sie die Anleitung als Textdatei, im AmigaGuide-Format oder "
  279. ;                "das komplette HTML-Verzeichnis kopieren möchten. Die Frage nach dem Zielverzeichnis "
  280. ;                "folgt im nächsten Schritt."
  281.                 "\nSie können wählen, ob Sie die Anleitung als Textdatei oder im AmigaGuide-Format "
  282.                 "kopieren möchten. Die Frage nach dem Zielverzeichnis folgt im nächsten Schritt."
  283.             )
  284.         )
  285.         (set #help5
  286.             (cat
  287.                 "\nDa ShowAmiga96 kein eigenes Verzeichnes besitzt, muß die Anleitung in das "
  288.                 "allgemeine Hilfeverzeichnis des Systems kopiert werden. Wenn die HTML-Anleitung "
  289.                 "ausgewählt wurde, wird ein eigenes Verzeichnis (ShowAmiga96) angelegt."
  290.             )
  291.         )
  292.         (set #help6
  293.             (cat
  294.                 "\nShowAmiga96 öffnet seinen Bildschirm normalerweise fast am Anfang der Startup-Sequence, "
  295.                 "zu einem Zeitpunkt, an dem die Monitortreiber aus DEVS:Monitors noch nicht geladen wurden. "
  296.                 "Deshalb startet ShowAmiga96 vor dem Öffnen des Bildschirms selbst den Picasso96-Treiber. Alle "
  297.                 "anderen werden ganz normal etwas später aktiviert. Um aus der Vielzahl der möglichen P96-Monitor"
  298.                 "treiber den richtigen herauszufinden, ist der Installer auf Ihre Hilfe angewiesen."
  299.             )
  300.         )
  301.         (set #help7
  302.             (cat
  303.                 "\nFür gewöhnlich wird ShowAmiga96 am Anfang der Startup-Sequence gestartet. Der Installer "
  304.                 "kann den Aufruf selbst in die Datei eintragen. Wenn Sie die Startup-Sequence stark verändert "
  305.                 "haben oder ShowAmiga96 an einer anderen Stelle starten wollen, können Sie diesen Teil überspringen "
  306.                 "und später nach Anleitung den Aufruf per Hand eintragen."
  307.             )
  308.         )
  309.         (set #help8
  310.             (cat
  311.                 "\nSelbst wenn Sie die Einstellungen von ShowAmiga96 jetzt noch nicht ändern wollen, so sollten"
  312.                 "Sie trotzdem das Prefs-Programm starten und nur die Test-Funktion ausprobieren. Wenn die fehlerfrei "
  313.                 "abläuft, sollten auch beim Bootvorgang keine Probleme auftreten. Ansonsten wird die erscheinende "
  314.                 "Fehlermeldung Hinweise auf die mögliche Ursache liefern."
  315.             )
  316.         )
  317.     )
  318. )
  319.  
  320.  
  321.  
  322.  
  323. ;=============================================================================
  324. ; Los geht´s
  325. ;=============================================================================
  326.  
  327. (complete 0)
  328. (message    #startupmsg1
  329.     (all)
  330. )
  331.  
  332. (welcome)
  333.  
  334. ;=============================================================================
  335. ; Installationspfade einholen
  336. ;=============================================================================
  337.  
  338. (complete 5)
  339. (set #mainpath
  340.     (askdir    (prompt    #getpath1)
  341.         (help    #help1)
  342.         (default    #mainpath)
  343.     )
  344. )
  345.  
  346. (complete 10)
  347. (set #closepath
  348.     (askdir    (prompt    #getpath2)
  349.         (help    #help2)
  350.         (default    #closepath)
  351.     )
  352. )
  353.  
  354. (complete 15)
  355. (set #prefspath
  356.     (askdir    (prompt    #getpath3)
  357.         (help    #help3)
  358.         (default    #prefspath)
  359.     )
  360. )
  361.  
  362. ;=============================================================================
  363. ; nach Anleitungen fragen
  364. ;=============================================================================
  365.  
  366. (complete 20)
  367. (set #whichdoku
  368.     (askoptions
  369.         (help    #help4)
  370.         (prompt    #getdoku1)
  371.         (choices    #getdoku2 #getdoku22)
  372.         (default    %010)
  373.     )
  374. )
  375.  
  376. (complete 25)
  377. (if #whichdoku
  378.     (set #dokupath
  379.         (askdir    (prompt    #getpath4)
  380.             (help    #help5)
  381.             (default    #dokupath)
  382.         )
  383.     )
  384. )
  385.  
  386. ;=============================================================================
  387. ; Programme kopieren
  388. ;=============================================================================
  389.  
  390. (complete 30)
  391. (copyfiles
  392.     (prompt    #copy1)
  393.     (source    "C/ShowAmiga96")
  394.     (dest    #mainpath)
  395.     (infos)
  396.     (noposition)
  397. )
  398.  
  399. (complete 35)
  400. (copyfiles
  401.     (prompt    #copy2)
  402.     (source    "WBstartup/ShowAmiga96_Close")
  403.     (dest    #closepath)
  404.     (infos)
  405.     (noposition)
  406. )
  407.  
  408. (complete 40)
  409. (copyfiles
  410.     (prompt    #copy3)
  411.     (source    "Prefs/ShowAmiga96_Prefs")
  412.     (dest    #prefspath)
  413.     (infos)
  414.     (noposition)
  415. )
  416.  
  417. ;=============================================================================
  418. ; Hauptprogramm in Prefs-Tooltypes eintragen
  419. ;=============================================================================
  420.  
  421. (complete 45)
  422. (set #prefspath (tackon #prefspath "ShowAmiga96_Prefs"))
  423.  
  424. (set #mainpath (tackon #mainpath "ShowAmiga96"))
  425.  
  426. (tooltype
  427.     (prompt        #tooltype1)
  428.     (help        #help5)
  429.     (settooltype    "MAINPRG" #mainpath)
  430.     (dest        #prefspath)
  431. )
  432.  
  433. ;=============================================================================
  434. ; Textdateien kopieren
  435. ;=============================================================================
  436.  
  437. (complete 50)
  438. (if(IN #whichdoku 0)
  439.     (
  440.         (copyfiles
  441.             (prompt    #copy4)
  442.             (source    #textfile)
  443.             (dest    #dokupath)
  444.             (infos)
  445.             (noposition)
  446.         )
  447.         (complete 53)
  448.         (copyfiles
  449.             (prompt    #copy4)
  450.             (source    #afdfile)
  451.             (dest    #dokupath)
  452.             (infos)
  453.             (noposition)
  454.         )
  455.     )
  456. )
  457.  
  458. ;=============================================================================
  459. ; Guide kopieren
  460. ;=============================================================================
  461.  
  462. (complete 50)
  463. (if(IN #whichdoku 1)
  464.     (
  465.         (copyfiles
  466.             (prompt    #copy44)
  467.             (source    #guidefile)
  468.             (dest    #dokupath)
  469.             (infos)
  470.             (noposition)
  471.         )
  472.         (complete 56)
  473.         (copyfiles
  474.             (prompt    #copy44)
  475.             (source    #afdfile)
  476.             (dest    #dokupath)
  477.             (infos)
  478.             (noposition)
  479.         )
  480.     )
  481. )
  482.  
  483. ;=============================================================================
  484. ; HTML-Dateien kopieren
  485. ;=============================================================================
  486.  
  487. (complete 60)
  488. (if(IN #whichdoku 3)
  489.     (
  490.         (set #dokupath (tackon #dokupath "ShowAmiga96"))
  491.         (copyfiles
  492.             (prompt    #copy5)
  493.             (source    "docs/")
  494.             (pattern    #htmlfile)
  495.             (dest    #dokupath)
  496.             (infos)
  497.             (noposition)
  498.         )
  499.         (complete 65)
  500.         (copyfiles
  501.             (prompt    #copy5)
  502.             (source    "Docs/")
  503.             (pattern    "#?.png")
  504.             (dest    #dokupath)
  505.             (infos)
  506.             (noposition)
  507.         )
  508.     )
  509. )
  510.  
  511. ;=============================================================================
  512. ; nach Moni-Driver fragen
  513. ;=============================================================================
  514.  
  515. (complete 70)
  516. (while (OR (= (fileonly(#driverpath)) "") (NOT #driverok))
  517.     (
  518.         (set #driverpath
  519.             (askfile    (prompt    #getdriver)
  520.                 (help    #help6)
  521.                 (default    #driverpath)
  522.             )
  523.         )
  524.         (set #driverok (exists #driverpath (noreq)))
  525.         (if (NOT #driverok)
  526.             (message    (cat #nodriver1 #driverpath #nodriver2) (all))
  527.         )
  528.     )
  529. )
  530.  
  531. ;=============================================================================
  532. ; Prefs starten und Grundeinstellungen eintragen
  533. ;=============================================================================
  534.  
  535. (complete 80)
  536. (set #prefsini (cat #prefspath " " #mainpath " " #driverpath))
  537.  
  538. (working    #startupmsg3)
  539.  
  540. (run #prefsini
  541.     (prompt    #startupmsg3)
  542. )
  543.  
  544. ;=============================================================================
  545. ; ShowAmiga96 in Startup-sequence eintragen
  546. ;=============================================================================
  547.  
  548. (complete 90)
  549. (working    #workmsg1)
  550.  
  551. (set #editsseq (cat #editsseq #mainpath))
  552.  
  553. (run #editsseq
  554.     (prompt    #startupmsg6)
  555.     (help    #help7)
  556.     (confirm)
  557. )
  558.  
  559. ;=============================================================================
  560. ; Prefs starten und Installation verlassen
  561. ;=============================================================================
  562.  
  563. (complete 100)
  564. (message    #startupmsg4
  565.     (all)
  566. )
  567.  
  568. (set #prefsfile (cat "run >nil: " #prefspath " " #mainpath))
  569.  
  570. (run #prefsfile
  571.     (prompt    #startupmsg5)
  572.     (help    #help8)
  573.     (confirm)
  574. )
  575.  
  576. (exit (quiet))
  577.